package com.example.component;

// 注意：这里没有使用@Component注解
public class LoggerComponent {
    private boolean debugMode = true;
    
    public void log(String message) {
        if (debugMode) {
            System.out.println("[LOG] " + message);
        }
    }
    
    public void setDebugMode(boolean debugMode) {
        this.debugMode = debugMode;
        log("调试模式: " + (debugMode ? "开启" : "关闭"));
    }
}